﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sagacity.NC.Web.FormForm;

namespace Sagacity.NC.Web.BaokaoManager.PSchool
{
    public partial class CategoryOtherInfo : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int CategoryId = Request.QueryString["CategoryId"] == null ? 0 : int.Parse(Request.QueryString["CategoryId"]);
            int showStyle = Request.QueryString["showStyle"] == null ? 0 : int.Parse(Request.QueryString["showStyle"]);
            int ResourceId = Request.QueryString["ResourceId"] == null ? 0 : int.Parse(Request.QueryString["ResourceId"]);

            Sagacity.Entity.Query.ParameterInfo param = new Sagacity.Entity.Query.ParameterInfo() { ParameterName = "CATEGORY_ID", RealValue = CategoryId };
            this.TabFormCommon1.ModelParams.Add(param);
            this.TabFormCommon1.CurrentUser = CurrentUser;
            this.TabFormCommon1.ShowPlan = (ShowPlan)showStyle;
            this.TabFormCommon1.ResourceId = ResourceId;
            this.TabFormCommon1.AddFields.Add("CATEGORY_ID", CategoryId);
        }
    }
}
